#ifndef _PANDAX_ANIMATIONPLAYER_H__
#define _PANDAX_ANIMATIONPLAYER_H__
#include "px_animationdata.h"
#include "../rendersystem/px_textureatlas.h"
#define  ASC_SEQUENCE_INDEX  0
#define	 ASC_SQUENCE_DELAY   1

typedef struct _px_animationPlayer
{
 short asc[2];
 PXTEXTUREATLAS ** texture;
 PXAnimationData * animation_data;
}PXAnnimationPlayer;
PXAnnimationPlayer* init_animationPlayer(const char * fileName);
void draw_frame(PXAnnimationPlayer* ap,int frameId,int x,int y);
void draw_action(PXAnnimationPlayer* ap,int actionId, int x, int y );
#endif // px_animationPlayer_h__
